//
//  Category.h
//  EasyTip
//
//  Created by Jeffrey Palm on 2/14/09.
//  Copyright 2009 Jeffrey Palm. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "HasName.h"

@class Criteria;

@interface Category : HasName {
	
	// public so Packets can assign the next one
	Category				*next;

	@private
	NSMutableArray	*criteriaArray;
	
}

@property (nonatomic,retain) Category *next;

- (NSArray*) criteria;
- (Criteria*)add:(Criteria*)criterion;
- (Criteria*)addCriteria:(NSString*)name value:(int)v;
- (Criteria*)addCriteria:(NSString*)name value:(int)v image:(NSString*)img;
- (Criteria*)addCriteria:(NSString*)name value:(int)v description:(NSString*)desc;
- (Criteria*)addCriteria:(NSString*)name value:(int)v image:(NSString*)img description:(NSString*)desc;
- (int) criteriaCount;
- (Criteria*)criteriaAt:(int)index;

@end
